package com.platform.push.apiwx;

/**
 * @author ：mongo
 * @date ：2021-04-09 18:19:07
 * @description：
 * @modified By：
 * @version: 1.0.0
 */
import com.platform.push.apiwx.mini.IApiWXMini;
import com.platform.push.apiwx.wxpublic.IApiWXPublic;
import com.platform.push.util.ApiUtil;
import com.platform.push.util.Debug;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ApiWX {
    @Resource
    private Debug mDebug;

    public IApiWXMini createApiWXMini() {
        return ApiUtil.createApi("https://api.weixin.qq.com", IApiWXMini.class, mDebug.isDebug());
    }
    public IApiWXPublic createApiWXPublic() {
        return ApiUtil.createApi("https://api.weixin.qq.com", IApiWXPublic.class, mDebug.isDebug());
    }
}
